import request from "@/manager/base/RequestManager";
import IdRequest from "@/api/baisc/IdRequest";
import {AfterSaleAddressDTO} from "@/api/afterSale/order/dto/AfterSaleAddressDTO";


/**
 * 创建售后工单
 * @param params
 */
export function createAfterSaleOrder(params?: any) {
    return request.post('after/sale/order/createAfterSaleOrder', params)
}

/**
 * 处理妥投登记
 * @param params
 */
export function deliverAfterSaleOrder(params?: any) {
    return request.post('after/sale/order/deliverAfterSaleOrder', params)
}


/**
 * 获取工单收件人信息
 *
 * @author 徐寿春
 * 2023/4/5 01:06
 */
export function getAfterSaleOrderRecipientAddress(params?: IdRequest) {
    return request.post('after/sale/order/getAfterSaleOrderRecipientAddress', params)
}


/**
 * 新增拒收收件人信息
 *
 * @author 徐寿春
 * 2023/4/5 01:06
 */
export function addAfterSaleOrderRecipientAddress(params?: AfterSaleAddressDTO) {
    return request.post('after/sale/order/addAfterSaleOrderRecipientAddress', params)
}


/**
 * 处理质检完成
 * @param params
 */
export function handleCheckOverSaleOrder(params: IdRequest) {
    return request.post('after/sale/order/handleCheckOverSaleOrder', params)
}


/**
 * 处理标志登记
 * @param params
 */
export function handleSignerSaleOrder(params?: IdRequest) {
    return request.post('after/sale/order/handleSignerSaleOrder', params)
}


/**
 * 关闭售后工单
 *
 * @author 徐寿春
 * 2023/4/7 10:00
 */
export function closeAfterSaleOrder(params?: any) {
    return request.post('after/sale/order/closeAfterSaleOrder', params)
}

/**
 *  获取工单详细信息
 *
 * @author 徐寿春
 * 2023/4/5 13:00
 */
export function getAfterSaleOrderInfo(params?: IdRequest) {
    return request.post('after/sale/order/getAfterSaleOrderInfo', params)
}

/**
 *  获取工单状态机
 *
 * @author 徐寿春
 * 2023/4/5 13:00
 */
export function getAfterSaleOrderStatusManager(params?: any) {
    return request.post('after/sale/order/getAfterSaleOrderStatusManager', params)
}


/**
 * 退款售后工单
 *
 * @author 徐寿春
 * 2023/4/4 23:03
 */
export function refundAfterSaleOrder(params?: IdRequest) {
    return request.post('after/sale/order/refundAfterSaleOrder', params)
}


/**
 * 获取发货单详情
 *
 * @author 徐寿春
 * 2023/4/4 23:03
 */
export function getSendOrderAfterInfo(params?: IdRequest) {
    return request.post('after/sale/order/getSendOrderAfterInfo', params)
}




/**
 * 获取拒收 单详情
 *
 * @author 徐寿春
 * 2023/4/23 14:14
 */
export function getRejectOrderAfterInfo(params?: IdRequest) {
    return request.post('after/sale/order/getRejectOrderAfterInfo', params)
}
